package com.po.service.impl;

import com.po.mapper.LabelMapper;
import com.po.pojo.Label;
import com.po.service.ArticleService;
import com.po.service.LabelService;
import org.assertj.core.internal.bytebuddy.asm.Advice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zxw
 * @date 2020/7/28 21:08
 */
@Service
public class LabelServiceImpl implements LabelService {
    @Autowired
    private LabelMapper labelMapper;

    @Override
    public void insert(Label label) {
        labelMapper.insert(label);
    }

    @Override
    public List<Label> selectAll() {
        return labelMapper.selectList(null);
    }
}
